/*
 单选复选框
 */
input[type=radio],
input[type=checkbox] {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    -webkit-appearance: none;
    appearance: none;
    color-adjust: exact;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    input[type=radio],
    input[type=checkbox] {
        transition: none;
    }
}

input[type=radio]:active,
input[type=checkbox]:active {
    filter: brightness(90%);
}

input[type=radio]:focus,
input[type=checkbox]:focus {
    outline: 0;
}

input[type=radio]:checked,
input[type=checkbox]:checked {
    background-color: #3aad4f;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    border-color: #3aad4f;
}

input[type=radio]:disabled,
input[type=checkbox]:disabled {
    pointer-events: none;
    filter: none;
    opacity: 0.5;
}

input[type=checkbox] {
    border-radius: 0.25em;
}

input[type=radio] {
    border-radius: 50%;
}
